package interfaces.print;



/**
 * @Author admin
 * @Date 2019/3/22 10:25
 */
public class PrinterFactory {
    public static Pronter getPronter(int a){
        Pronter pronter;
        if (a==1){
            pronter = new HPPrinter();
        }
        else{
            pronter = new CPrint();
        }
        return pronter;
    }


}
